package org.example.controller;

import com.fasterxml.jackson.databind.JsonNode;

public class UserChatRequestContext {
    private static ThreadLocal<JsonNode> threadLocal = new ThreadLocal<>();
    public static void reset() {
        threadLocal.remove();
    }
    public static void set(JsonNode message) {
        threadLocal.set(message);
    }

    public static JsonNode get() {
        return threadLocal.get();
    }
}
